import { defineStore } from 'pinia';

export const myStore = defineStore('main',{
  state:()=>{
    return {
      userToken:sessionStorage.getItem('token')?sessionStorage.getItem('token'):'123',
    }
  },
  actions:{
    setStorageToken(){
      sessionStorage.setItem('token',this.userToken?this.userToken:"")
    }
  }
})